{% extends 'custom_admin/base.html' %}

{% block content %}
<div class="card">
    <div class="card-header">
        <h5><i class="fas fa-tags me-2"></i>{{ title }}</h5>
    </div>
    <div class="card-body">
        <div class="table-responsive">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>标签名称</th>
                    </tr>
                </thead>
                <tbody>
                    {% for tag in tags %}
                    <tr>
                        <td># {{ tag.id }}</td>
                        <td><span class="badge bg-info">{{ tag.name }}</span></td>
                    </tr>
                    {% empty %}
                    <tr>
                        <td colspan="2" class="text-center">暂无标签数据</td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</div>
{% endblock %}